-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
save as Pcapng files #145 #148
Conversation
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
� Conflicts: � user/probe_openssl.go
and change short name -w to -l of global flags. Signed-off-by: CFC4N <[email protected]>
longflag: write, ifname. Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
add go-bindata to go.sum for Makefile script. Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
kern/openssl_tc.h
Outdated
// make sure data_len is not negative | ||
event->data_len = data_len; | ||
|
||
bpf_probe_read_kernel(event->data, sizeof(event->data), &data_start); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to read skb->data, just specify the skb->len in flags of bpf_perf_event_output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__u64 len = data_end - data;
flags = (len << 32) | BPF_F_CURRENT_CPU;
bpf_perf_event_output(ctx, &events, flags, &event, sizeof(event));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good advice,thanks.
Signed-off-by: CFC4N <[email protected]>
Signed-off-by: CFC4N <[email protected]>
Merge pull request ehids#148 from ehids/pcapng-files
No description provided.